package com.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by lmn on 2018/4/8.
 */
@Controller
@RequestMapping("error")
public class ErrorController {

    @RequestMapping("/demo")
    public String error(){
        int num = 1/0;
        return "error";
    }
}
